package com.ykdl.member.kid.models;

import java.io.Serializable;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.beans.ExtraContextBean;

import net.wxxr.http.interfaces.IJsonParser;

public class FileMetas implements Serializable  ,IJsonParser{
	private static final long serialVersionUID = 8474823193922298663L;
	
	private  DownloadUrls download_urls = null;
	private int file_id = 0;
	private String file_name = null;
	private boolean is_image = false;
	private String mime_type = null;
	public DownloadUrls getDownload_urls() {
		return download_urls;
	}
	public void setDownload_urls(DownloadUrls download_urls) {
		this.download_urls = download_urls;
	}
	public int getFile_id() {
		return file_id;
	}
	public void setFile_id(int file_id) {
		this.file_id = file_id;
	}
	public String getFile_name() {
		return file_name;
	}
	public void setFile_name(String file_name) {
		this.file_name = file_name;
	}
	public boolean isIs_image() {
		return is_image;
	}
	public void setIs_image(boolean is_image) {
		this.is_image = is_image;
	}
	public String getMime_type() {
		return mime_type;
	}
	public void setMime_type(String mime_type) {
		this.mime_type = mime_type;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		if(!TextUtils.isEmpty(json)){
			GsonBuilder b = new GsonBuilder();
			Gson gson  = b.create();
			return gson.fromJson(json, FileMetas.class);
		}
		return null; 
	}
	
	
	
}
